Skip to content

sync: align SDK with CLI 2.1.148#53

Open
guess wants to merge 1 commit into
mainfrom
worktree-glimmering-sauteeing-honey
Open

sync: align SDK with CLI 2.1.148#53
guess wants to merge 1 commit into
mainfrom
worktree-glimmering-sauteeing-honey

Conversation

@guess

@guess guess commented May 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Version bump: @default_cli_version 2.1.76 → 2.1.148 (72 patch versions)
  • Message types: 8 new system message subtypes (api_retry, task_updated, session_state_changed, notification, mirror_error, permission_denied, plugin_install, memory_recall) — 100% SDKMessage coverage
  • Content blocks: advisor_tool_result mapped to ServerToolResultBlock, new SearchResultBlock for round-tripped search results
  • Control protocol: background_tasks, get_context_usage, get_session_cost outbound requests with public APIs; completed elicitation inbound handler with on_elicitation callback
  • Options: include_hook_events, exclude_dynamic_prompt_sections, title, forward_subagent_text, tool_aliases for TS/Python SDK parity

Test plan

  • mix quality passes (compile, format, credo, dialyzer)
  • 1619 tests + 2 doctests, 0 failures
  • All 8 new system message modules at 100% test coverage
  • New content blocks, control requests, and options tested
  • Verify bundled CLI installs correctly at 2.1.148
  • Smoke test Session.background_tasks/2, Session.context_usage/1, Session.session_cost/1 against live CLI

Closes a 72-version gap (2.1.76 → 2.1.148) across five areas:

Message types: add 8 missing system message subtypes (api_retry,
task_updated, session_state_changed, notification, mirror_error,
permission_denied, plugin_install, memory_recall) bringing coverage
from 73% to 100% of the SDKMessage union.

Content blocks: add advisor_tool_result to ServerToolResultBlock,
create SearchResultBlock for round-tripped search results.

Control protocol: add background_tasks, get_context_usage, and
get_session_cost outbound requests with Session public APIs. Complete
the elicitation inbound handler with on_elicitation callback support.

Options: add include_hook_events, exclude_dynamic_prompt_sections,
title, forward_subagent_text, and tool_aliases for TS/Python SDK
parity.

Version: bump @default_cli_version to 2.1.148.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant